import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import router from './router'
import '@/style.scss'
// import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import { io, Socket } from 'socket.io-client'
//引入粒子特效
import Particles from 'particles.vue3';

const app = createApp(App)
const socket: Socket = io('http://localhost:4000')
app.use(createPinia())
    .use(router)
    .use(Particles)
// app.use(ElementPlus)
app.provide('socket', socket)
app.mount('#app')

// console.log(import.meta.env);

